Add a Kind argument to target_filenames
authorAlex Crichton <alex@alexcrichton.com>
Thu, 7 May 2015 02:29:05 +0000 (19:29 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 7 May 2015 02:29:05 +0000 (19:29 -0700)
commitc54c6a9df4ddb7d8509af09f687faba9efe73af9
treecb6cd2db145a0fff5aad3b7f6967d8214b2160ae
parentece2a9235f447b37307af66caac5b84830b02fd7
Add a Kind argument to target_filenames

Knowing the target architecture for calculating the filename is needed when
calculating the name of a dynamic library, and previously this was only taken
into account when a target was a plugin. Targets can, however, request that they
are built as a dynamic library which also needs to be taken into account.

Closes #1589
src/cargo/ops/cargo_clean.rs
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/mod.rs